package daoImpl;

import dao.userDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class userDaoTest {

    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
        userDaoImpl2 userDao = (userDaoImpl2)applicationContext.getBean("useDao1");
        System.out.println(userDao.getUserById(28));
    }
}
